package com.inspur.edp.team.config;

import com.inspur.edp.team.PaasEnvAuthorityService;
import com.inspur.edp.team.PaasTeamMemberService;
import com.inspur.edp.team.PaasTeamService;
import com.inspur.edp.team.converter.*;
import com.inspur.edp.team.converter.TeamMemberConverter;
import com.inspur.edp.team.manager.PaasTeamManager;
import com.inspur.edp.team.service.impl.*;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@Configuration
@EnableJpaRepositories("com.inspur.edp.team.dao")
@EntityScan("com.inspur.edp.team.domain")
public class TeamCoreConfig {

    @Bean
    public PaasTeamManager paasTeamManager() {
        return new PaasTeamManager();
    }

    @Bean
    public PaasTeamService paasTeamService() {
        return new PaasTeamServiceImpl();
    }

    @Bean
    public PaasTeamMemberService paasTeamMemberService() { return new PaasTeamMemberServiceImpl(); }

    @Bean
    public PaasEnvAuthorityService paasEnvAuthorityService() {
        return new PaasEnvAuthorityServiceImpl();
    }

    @Bean
    public TeamConverter teamConverter() {
        return new TeamConverter();
    }

    @Bean
    public TeamMemberConverter teamMemberConverter() { return new TeamMemberConverter(); }


}
